Optimal. Leaf size=515 \[ -\frac {3 x}{1-\sqrt {3}-\sqrt [3]{1-x^2}}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3}}{x}\right )}{2\ 2^{2/3}}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \left (1-\sqrt [3]{2} \sqrt [3]{1-x^2}\right )}{x}\right )}{2\ 2^{2/3}}+\frac {\tanh ^{-1}(x)}{2\ 2^{2/3}}-\frac {3 \tanh ^{-1}\left (\frac {x}{1+\sqrt [3]{2} \sqrt [3]{1-x^2}}\right )}{2\ 2^{2/3}}-\frac {3 \sqrt [4]{3} \sqrt {2+\sqrt {3}} \left (1-\sqrt [3]{1-x^2}\right ) \sqrt {\frac {1+\sqrt [3]{1-x^2}+\left (1-x^2\right )^{2/3}}{\left (1-\sqrt {3}-\sqrt [3]{1-x^2}\right )^2}} E\left (\sin ^{-1}\left (\frac {1+\sqrt {3}-\sqrt [3]{1-x^2}}{1-\sqrt {3}-\sqrt [3]{1-x^2}}\right )|-7+4 \sqrt {3}\right )}{2 x \sqrt {-\frac {1-\sqrt [3]{1-x^2}}{\left (1-\sqrt {3}-\sqrt [3]{1-x^2}\right )^2}}}+\frac {\sqrt {2} 3^{3/4} \left (1-\sqrt [3]{1-x^2}\right ) \sqrt {\frac {1+\sqrt [3]{1-x^2}+\left (1-x^2\right )^{2/3}}{\left (1-\sqrt {3}-\sqrt [3]{1-x^2}\right )^2}} F\left (\sin ^{-1}\left (\frac {1+\sqrt {3}-\sqrt [3]{1-x^2}}{1-\sqrt {3}-\sqrt [3]{1-x^2}}\right )|-7+4 \sqrt {3}\right )}{x \sqrt {-\frac {1-\sqrt [3]{1-x^2}}{\left (1-\sqrt {3}-\sqrt [3]{1-x^2}\right )^2}}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.12, antiderivative size = 515, normalized size of antiderivative = 1.00, number of steps
used = 6, number of rules used = 6, integrand size = 22, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.273, Rules used = {494, 241, 310,
225, 1893, 402} \begin {gather*} \frac {\sqrt {2} 3^{3/4} \left (1-\sqrt [3]{1-x^2}\right ) \sqrt {\frac {\left (1-x^2\right )^{2/3}+\sqrt [3]{1-x^2}+1}{\left (-\sqrt [3]{1-x^2}-\sqrt {3}+1\right )^2}} F\left (\text {ArcSin}\left (\frac {-\sqrt [3]{1-x^2}+\sqrt {3}+1}{-\sqrt [3]{1-x^2}-\sqrt {3}+1}\right )|-7+4 \sqrt {3}\right )}{\sqrt {-\frac {1-\sqrt [3]{1-x^2}}{\left (-\sqrt [3]{1-x^2}-\sqrt {3}+1\right )^2}} x}-\frac {3 \sqrt [4]{3} \sqrt {2+\sqrt {3}} \left (1-\sqrt [3]{1-x^2}\right ) \sqrt {\frac {\left (1-x^2\right )^{2/3}+\sqrt [3]{1-x^2}+1}{\left (-\sqrt [3]{1-x^2}-\sqrt {3}+1\right )^2}} E\left (\text {ArcSin}\left (\frac {-\sqrt [3]{1-x^2}+\sqrt {3}+1}{-\sqrt [3]{1-x^2}-\sqrt {3}+1}\right )|-7+4 \sqrt {3}\right )}{2 \sqrt {-\frac {1-\sqrt [3]{1-x^2}}{\left (-\sqrt [3]{1-x^2}-\sqrt {3}+1\right )^2}} x}-\frac {\sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3} \left (1-\sqrt [3]{2} \sqrt [3]{1-x^2}\right )}{x}\right )}{2\ 2^{2/3}}-\frac {\sqrt {3} \text {ArcTan}\left (\frac {\sqrt {3}}{x}\right )}{2\ 2^{2/3}}-\frac {3 x}{-\sqrt [3]{1-x^2}-\sqrt {3}+1}-\frac {3 \tanh ^{-1}\left (\frac {x}{\sqrt [3]{2} \sqrt [3]{1-x^2}+1}\right )}{2\ 2^{2/3}}+\frac {\tanh ^{-1}(x)}{2\ 2^{2/3}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 225
Rule 241
Rule 310
Rule 402
Rule 494
Rule 1893
Rubi steps
\begin {align*} \int \frac {x^2}{\sqrt [3]{1-x^2} \left (3+x^2\right )} \, dx &=-\left (3 \int \frac {1}{\sqrt [3]{1-x^2} \left (3+x^2\right )} \, dx\right )+\int \frac {1}{\sqrt [3]{1-x^2}} \, dx\\ &=-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3}}{x}\right )}{2\ 2^{2/3}}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \left (1-\sqrt [3]{2} \sqrt [3]{1-x^2}\right )}{x}\right )}{2\ 2^{2/3}}+\frac {\tanh ^{-1}(x)}{2\ 2^{2/3}}-\frac {3 \tanh ^{-1}\left (\frac {x}{1+\sqrt [3]{2} \sqrt [3]{1-x^2}}\right )}{2\ 2^{2/3}}-\frac {\left (3 \sqrt {-x^2}\right ) \text {Subst}\left (\int \frac {x}{\sqrt {-1+x^3}} \, dx,x,\sqrt [3]{1-x^2}\right )}{2 x}\\ &=-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3}}{x}\right )}{2\ 2^{2/3}}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \left (1-\sqrt [3]{2} \sqrt [3]{1-x^2}\right )}{x}\right )}{2\ 2^{2/3}}+\frac {\tanh ^{-1}(x)}{2\ 2^{2/3}}-\frac {3 \tanh ^{-1}\left (\frac {x}{1+\sqrt [3]{2} \sqrt [3]{1-x^2}}\right )}{2\ 2^{2/3}}+\frac {\left (3 \sqrt {-x^2}\right ) \text {Subst}\left (\int \frac {1+\sqrt {3}-x}{\sqrt {-1+x^3}} \, dx,x,\sqrt [3]{1-x^2}\right )}{2 x}-\frac {\left (3 \sqrt {\frac {1}{2} \left (2+\sqrt {3}\right )} \sqrt {-x^2}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {-1+x^3}} \, dx,x,\sqrt [3]{1-x^2}\right )}{x}\\ &=-\frac {3 x}{1-\sqrt {3}-\sqrt [3]{1-x^2}}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3}}{x}\right )}{2\ 2^{2/3}}-\frac {\sqrt {3} \tan ^{-1}\left (\frac {\sqrt {3} \left (1-\sqrt [3]{2} \sqrt [3]{1-x^2}\right )}{x}\right )}{2\ 2^{2/3}}+\frac {\tanh ^{-1}(x)}{2\ 2^{2/3}}-\frac {3 \tanh ^{-1}\left (\frac {x}{1+\sqrt [3]{2} \sqrt [3]{1-x^2}}\right )}{2\ 2^{2/3}}-\frac {3 \sqrt [4]{3} \sqrt {2+\sqrt {3}} \left (1-\sqrt [3]{1-x^2}\right ) \sqrt {\frac {1+\sqrt [3]{1-x^2}+\left (1-x^2\right )^{2/3}}{\left (1-\sqrt {3}-\sqrt [3]{1-x^2}\right )^2}} E\left (\sin ^{-1}\left (\frac {1+\sqrt {3}-\sqrt [3]{1-x^2}}{1-\sqrt {3}-\sqrt [3]{1-x^2}}\right )|-7+4 \sqrt {3}\right )}{2 x \sqrt {-\frac {1-\sqrt [3]{1-x^2}}{\left (1-\sqrt {3}-\sqrt [3]{1-x^2}\right )^2}}}+\frac {\sqrt {2} 3^{3/4} \left (1-\sqrt [3]{1-x^2}\right ) \sqrt {\frac {1+\sqrt [3]{1-x^2}+\left (1-x^2\right )^{2/3}}{\left (1-\sqrt {3}-\sqrt [3]{1-x^2}\right )^2}} F\left (\sin ^{-1}\left (\frac {1+\sqrt {3}-\sqrt [3]{1-x^2}}{1-\sqrt {3}-\sqrt [3]{1-x^2}}\right )|-7+4 \sqrt {3}\right )}{x \sqrt {-\frac {1-\sqrt [3]{1-x^2}}{\left (1-\sqrt {3}-\sqrt [3]{1-x^2}\right )^2}}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 6 vs. order 4 in
optimal.
time = 4.44, size = 28, normalized size = 0.05 \begin {gather*} \frac {1}{9} x^3 F_1\left (\frac {3}{2};\frac {1}{3},1;\frac {5}{2};x^2,-\frac {x^2}{3}\right ) \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.03, size = 0, normalized size = 0.00 \[\int \frac {x^{2}}{\left (-x^{2}+1\right )^{\frac {1}{3}} \left (x^{2}+3\right )}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{2}}{\sqrt [3]{- \left (x - 1\right ) \left (x + 1\right )} \left (x^{2} + 3\right )}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {x^2}{{\left (1-x^2\right )}^{1/3}\,\left (x^2+3\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________